import jsonp from '../common/js/jsonp'
import { commonParams, options } from './config'
import axios from 'axios'

// export function getRecommend() {
//   const url = 'http://musicapi.leanapp.cn/'

//   const data = Object.assign({}, commonParams, {
//     platform: 'h5',
//     uin: 0,
//     needNewCode: 1
//   })
//   return jsonp(url, data, options)
// }

export function getDiscList() {
  const url = '/api/top/playlist/highquality?limit=30'

  return axios.get(url).then((res) => {
    return Promise.resolve(res.data)
  })
}
